// 配套任务查询接口类型定义
export interface searchByPageParam {
  searchParams: {
    startPlaneNo: string;
    productCode: string;
    batchNo: string;
  };
  pageParameter: {
    rows?: number;
    page?: number;
  };
  startTime: string;
  endTime: string;
}

// 配套任务中间表查询接口类型定义
export interface searchMsTaskAoParam {
  msTaskPackageId: string;
  pageParameter: {
    rows?: number;
    page?: number;
  };
}
// 配套任务查询最底层表接口类型定义
export interface searchMsAoMatchBillParam {
  msTaskAoId: string;
  pageParameter: {
    rows?: number;
    page?: number;
  };
}

// 分拣预配套任务查询接口类型定义
export interface searchMsAoMachInfoParam {
  searchParams: {
    weekStartTime: string;
    isDownWeek: string;
    itemCode: string;
    startPlaneNo: string;
    dailyStartTime: string;
    monthStartTime: string;
    deliveryState: string;
    isDownDaily: string;
    monthEndTime: string;
    station: string;
    aoCode: string;
    packageCode: string;
    state: string;
    productCode: string;
    dailyEndTime: string;
    weekEndTime: string;
    batchNo: string;
    isSort: string;
  };
  pageParameter: {
    rows?: number;
    page?: number;
  };
}

//  分拣预配套新增数据查询
export interface insertMsMatchInfoParam {
  map: any[];
}

// 分拣预配套任务查询接口类型定义
export interface searchOperatePageParam {
  searchParams: {
    productCode: string;
    batchNo: string;
    startLotNo: string;
  };
  pageParameter: {
    rows?: number;
    page?: number;
  };
}

//  故障改派-弹框保存
export interface changeTaskToMsConsoleParam {
  taskPackages: string[];
  CONSOLENAME: string;
}

// 工艺更改分拣-查询
export interface searchChangedAoParam {
  searchParams: any;
  pageParameter: {
    rows?: number;
    page?: number;
  };
}

// 工艺更改分拣-AO物料配套清单
export interface searchAoMaterialParam {
  searchParams: {
    msTaskAoId: string;
  };
  pageParameter: {
    rows?: number;
    page?: number;
  };
}

// 工艺更改分拣-工作包出库
export interface taskOutParam {
  agv: string;
  msTaskPackageId?: string;
  aoBarcode: string;
}

// 工艺更改分拣-工作包扫码、缓存箱扫码
export interface searchToolMaterialParam {
  toolCode: string;
}

// 工艺更改分拣-缓存箱出库
export interface sortStoreRoomOutParam {
  aoBarcode: string;
}

// 工作包拆包(工艺更改)-查询
export interface detailedAoInfoParam {
  searchParams: any;
  pageParameter: {
    rows?: number;
    page?: number;
  };
}

// 工作包取消-查询
export interface searchSortedParam {
  searchParams: any;
  pageParameter: {
    rows?: number;
    page?: number;
  };
}

// AO替换-查询
export interface searchMatchingParam {
  searchParams: {
    aoCode: string;
    startPlaneNo: string;
  };
  pageParameter: {
    rows?: number;
    page?: number;
  };
}

// 接收分拣-查询
export interface searchReceiveParam {
  searchParams: any;
  pageParameter: {
    rows?: number;
    page?: number;
  };
}

// 工作包分拣-查询
export interface queryPalletTaskParam {
  queryParam: {
    workpageCode: string;
    aoCode: string;
    planeNo: string;
    palletCode: string;
    station: string;
  };
  page: {
    pageSize?: number;
    currentPage?: number;
  };
}

// 预配套查询-分拣台查询
export interface querySortConsoleParam {
  searchParams: {
    aoCode: string;
    batchNo: string;
    consoleIp: string;
    dailyEndTime: string;
    dailyStartTime: string;
    deliveryState: string;
    itemCode: string;
    monthEndTime: string;
    monthStartTime: string;
    packageCode: string;
    startPlaneNo: string;
    state: string;
    weekEndTime: string;
    weekStartTime: string;
    consoleId:string;
  };
  pageParameter: {
    rows?: number;
    page?: number;
  };
}

// 预配套查询-工作包查询
export interface queryPackageByConsoleParam {
  searchParams: {
    consoleId: string;
  };
  pageParameter: {
    currentPage: number;
    pageSize: number;
  };
}

// 预配套查询-AO查询
export interface queryAoByConsoleParam {
  searchParams: {
    msTaskPackageId: string;
  };
  pageParameter: {
    pageSize: number;
    currentPage: number;
  };
}

// 预配套查询-AO查询
export interface queryMatchInfoByConsoleParam {
  batchNo: string;
  productCode: string;
  msTaskAoId: string;
  packageCode: string;
  startPlaneNo: string;
  aoCode: string;
  state: string;
  aState: string;
  sortingStatus: string;
  PAGEHELPER_ROW_ID: number;
}

// 工作包拆包非工艺更改-拆包查询
export interface queryPackageTaskParam {
  searchParams: {
    packageCode: string;
    startPlaneNo: string;
  };
  page: {
    pageSize: number;
    currentPage: number;
  };
}

// 拆包不叫盘查询
export interface querySortMaterialParam {
  queryMap: {
    aoCode: string;
    itemCode: string;
    planeNo: string;
    qualityCode: string;
  };
  page: {
    pageSize: number;
    currentPage: number;
  };
}

// 拆包不叫盘查询
export interface PackageListQueryParam {
  queryParam: {
    startPlaneNo: string;
    packageCode: string;
    State: string;
    Astate: string;
    sortingStatus: string;
  };
  page: {
    currentPage: number;
    total: number;
    pageSize: number;
  };
}
